Skip to content

fix(id): split world_ssh.rs client code into world_ssh/client.rs (refs #13057) - #14042

Merged
developing-today-fleet[bot] merged 1 commit into
mainfrom
xaltha/13057-world-ssh-split
Nov 24, 2026
Merged

developing-today-fleet[bot] merged 1 commit into
mainfrom
xaltha/13057-world-ssh-split

Conversation

@dezren39

@dezren39 dezren39 commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Closes #13057

Summary

world_ssh.rs was the last file over the 2500 production-line limit on main (2665 lines) after #13783 landed the other four files in #13057. This PR moves the SSH client block — SshTarget, HostKeyCheck, HostKeyTrust, SshConnection, connect_frames (199 lines) — into the new world_ssh/client.rs submodule, following the existing form_io / form_prompt / kitty split pattern. The moved items are re-exported from world_ssh.rs, so id_worlds::world_ssh::{SshTarget, HostKeyCheck, connect_frames} keep working unchanged. Pure move; no behaviour change.

Evidence

  • bash .github/scripts/check-production-line-limit.sh on this branch: production-line-guard: OK (1009 .rs + 274 .ts files). Before: OVER LIMIT pkgs/id/crates/id-worlds/src/world_ssh.rs: 2665 production lines.
  • rustfmt --edition 2024 --check on both touched files: clean.
  • check-rust-module-reach.sh: client.rs is reached; the 16 unreached files it lists are pre-existing and unrelated.
  • Remote verification: cargo test -p id-worlds world_ssh && cargo check -p id-worlds -p id-cli && bash .github/scripts/check-production-line-limit.sh via the fleet-command workflow. First run (https://github.com/developing-today/fleet/actions/runs/45316196172) failed on a runner defect, not the code: permission denied when opening file .../.fleet/cache/cargo/registry/src/.../fnv-1.0.7/lib.rs (a root-owned cargo registry cache unreadable by the vscode user). Retry with a fresh CARGO_HOME=/tmp/cargo-home dispatched as https://github.com/developing-today/fleet/actions/runs/45318041109; PR CI is the compile/test check for this head.

Merge Danger

Low. Pure code move within one crate; public paths preserved via re-export. If the retry run or PR CI flags a compile error, the fix is in the moved module's imports.

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-24T03:14:19Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": "/home/hatch/workspace/github-work/code-13057-world-ssh",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/hatch/workspace/github-work/code-13057-world-ssh",
      "repo": "developing-today/code",
      "branch": "xaltha/13057-world-ssh-split",
      "sha": "3affec8949fbd865710f819ab25ae7ad877659fb"
    },
    "auth_subject": "xaltha",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…#13057)

Move the SSH client block (SshTarget, HostKeyCheck, HostKeyTrust,
SshConnection, connect_frames) out of world_ssh.rs into the new
world_ssh/client.rs submodule, re-exported so
id_worlds::world_ssh::{SshTarget, HostKeyCheck, connect_frames} keep
working. Pure move; no behaviour change.

world_ssh.rs drops from 2665 to ~2468 production lines, so the
production-line-guard passes; it was the last over-limit file on main
after #13783.
@coderabbitai

coderabbitai Bot commented Nov 24, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 11 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 86e807c5-8997-439e-92bf-7896f807e193
Commits

Reviewing files that changed from the base of the PR and between 5708d46 and 3affec8.

Files selected for processing: 2

  • pkgs/id/crates/id-worlds/src/world_ssh.rs
  • pkgs/id/crates/id-worlds/src/world_ssh/client.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@dezren39

Copy link
Copy Markdown
Member Author

Verification update: retry run https://github.com/developing-today/fleet/actions/runs/45318041109 also failed, but NOT on this change — it hits a pre-existing compile error on current main in an untouched crate: error[E0599]: no method named compactfound for structSharedEventStoreatcrates/id-events/src/local_events.rs:355 (LocalEvents::compactcallsself.store.compact(policy), but SharedEventStoreincrates/id-store/src/store_traits.rshas nocompactforwarding method;EventStore::compactexists atcrates/id-events/src/event_store/compaction.rs:225). Introduced by merged PR #13480, which made LocalEventshold the store throughSharedEventStore`. The guard script still passes on this head and the move itself is untouched by that error; the id-events fix belongs in a follow-up slice.

@developing-today-fleet
developing-today-fleet Bot merged commit 45adb4c into main Nov 24, 2026
2 checks passed
@developing-today-fleet
developing-today-fleet Bot deleted the xaltha/13057-world-ssh-split branch November 24, 2026 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

production line guard red on main: world_caps.rs, world.rs, world_session/mod.rs over the 2500 limit

1 participant